﻿@model IEnumerable<Mysoft.Platform.OnlineLibrary.Models.BatchLogModel>
@{
    ViewBag.Title = "历史记录";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="container">
	<table class="table table-bordered simple-table-thead">
		<thead>
			<tr>
				<th style="text-align: left;width: 150px">操作日期</th>
				<th>借阅图书</th>
				<th style="text-align: left;width: 150px">操作类型</th>
			</tr>
		</thead>
		<tbody>
			@if(Model != null)
			{
				foreach (var m in Model)
				{
					int i = 0;
					foreach( var b in @m.BookNameList )
					{
						<tr>
							@if(i == 0)
							{
								<td rowspan="@m.BookNameList.Count">@m.CreateDate</td>
								<td>@m.BookNameList[0]</td>
							}
							else
							{
								<td>@m.BookNameList[i]</td>
							}
							<td>@m.OperationName</td>
						</tr>
						i++;
					}
				}
			}
		</tbody>
	</table>
</div>